export const defaultObj = {
    name: '张三',
    children: {
        name: '张三'
    }
};

export const setProp = function (isRef = false) {
    isRef ? this.$set(this.obj, 'age', '$set 14') : (this.obj.age = '.age 15')
}

export const setChildProp = function () {
    this.obj.children.name = '李四'
}

export const deleteProp = function (isRef) {
    isRef?this.$delete(this.obj.children, 'name') :delete this.obj.children.name;
};

export const inHandler = function () {
    this.$set(this.obj, 'inHandler', 'name' in this.obj)
};